﻿using ChessAnotator.UserControls;
using System.Collections.Generic;

namespace ChessAnotator.UserControls.Pieces
{
    public class BlackKnight : BasePiece
    {
        #region Private Members
        #endregion

        #region Properties
        #endregion

        public BlackKnight()
        {
            base.PieceUI = new BlackKnightUI();
            base.PieceColor = ChessAnotator.Base.Business.Nomenclature.PieceColor.Black;
        }
        
        #region Public Members
        public override void SetScale(double nScale)
        {
            ((BlackKnightUI)base.PieceUI).Scale = nScale;
        }

        public override List<int> GetAttackedSquares()
        {
            int nCurrSquareNbr = Base.Business.Utilities.GetSquareNbr(base.SquareName);
            List<int> arrResult = Base.Business.Utilities.GetKnightAttackedSquares(nCurrSquareNbr);

            return arrResult;
        }
        #endregion
    }
}
